/*
 * @LastEditors: yuSeen
 * @LastEditTime: 2021-12-30 14:05:08
 */
import request from '../../request'
import type { ISongUrl } from './types'
import type { IAllObject } from '@/types/base'

// 获取歌曲播放链接
export function getMusicUrl(id: number | string) {
    return request.get<ISongUrl[]>('/song/url', {id})
}

// 获取歌曲详情
export function getMusicDetail(ids: number) {
    return request.get<ISongUrl[]>('/song/detail', {ids})
}

// 获取歌词
export function getMusicLyric(id: number) {
    return request.get<ISongUrl[]>('/lyric', {id})
}